/* 基本样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #f7f7f7;
}

/* 页面布局 */
.container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 100px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* flex-direction: column; */
    /* align-items: center; */
    /* justify-content: center; */
}


.left-part {
    flex-grow: 1; /* 让.left-part容器占据剩余空间 */  
    /* 其他样式... */  
}


/* 搜索区域 */
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 10px;
    /* background-color: #f0f0f0; */
    border-radius: 4px;
}

.search input[type="text"] {
    flex-grow: 1;
    height: 100%;
    padding: 0 50px;
    border: 1px solid #ccc;
    border-right: none;
    outline: none;
    color: #666;
}

.search button {
    width: 150px;
    height: 100%;
    border: none;
    background-color: #4e6ef2;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search button:hover {
    background-color: #3b59e9;
}

/* 搜索结果 */
.result {
    margin-top: 20px;
    padding: 0 10px;
}

.result .item {
    margin-top: 15px;
}

.result .item a {
    display: block;
    text-decoration: none;
    color: #4e6ef2;
    font-size: 20px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.result .item a:hover {
    color: #3b59e9;
}

.result .item p {
    margin-top: ⅔px;
    font-size: 16px;
    line-height: 1.5;
}

.result .item i {
    display: block;
    font-style: normal;
    color: #008000;
}

/* 热词统计区域样式 */
.hotwords {
    width: 100%;
    /* margin-left: auto; */
    /* 使其右对齐 */
    padding: 10px;
    /* background-color: #f0f0f0; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* margin-left: 20px; 增加左外边距以向右移动 */
}

.hotwords h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.hotwords ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.hotwords li {
    margin-bottom: ½em;
    font-size: 16px;
}

.hotwords span {
    color: #4e6ef2;
}


/* 新增样式 */
.prefix-search {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;     /* 垂直居中对齐 */
    justify-content: flex-start; /* 水平开始对齐 */
    margin-bottom: 10px;     /* 与hotwords的间距保持一致 */
    padding: 10px;
    /* background-color: #f0f0f0; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prefix-search input[type="text"] {
    flex-grow: 1;            /* 搜索框占据剩余空间 */
    padding: 8px;            /* 内边距 */
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    color: #666;
    margin-right: 10px;     /* 与按钮保持一定间距 */
}

.prefix-search button {
    padding: 5px 15px;
    border: none;
    background-color: #4e6ef2;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.prefix-search button:hover {
    background-color: #3b59e9;
}

/* 假设你有一个用于显示前缀建议的容器 */
.prefix-suggestions {
    margin-top: 20px;
    padding: 0 10px;
}

.prefix-suggestions .suggestion-item {
    margin-top: 5px;
    font-size: 16px;
    line-height: 1.5;
    color: #008000; /* 与hotwords中的颜色一致 */
}
